package com.mengwen.backstage.service.impl;

import com.mengwen.backstage.mapper.PcUserMapper;
import com.mengwen.backstage.service.PcUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author LiangYonghui
 * @date 2020/4/21 15:30
 * @description  PcUserServiceImpl
 */

@Service
@Slf4j
public class PcUserServiceImpl implements PcUserService {

    @Autowired
    PcUserMapper pcUserMapper;
    @Override
    public String findImgurlByUnionid(String unionid) {
        return pcUserMapper.findImgurlByUnionid(unionid);
    }

    @Override
    public String findNicknameByUnionid(String unionid) {
        return pcUserMapper.findNicknameByUnionid(unionid);
    }

    @Override
    public String findOpenidByUnionid(String unionid) {
        return pcUserMapper.findOpenidByUnionid(unionid);
    }
}
